package com.lonewalker.sparrow.constant.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * @author lonewalker
 */

@Getter
public enum UserStateEnum {
    /**
     * 启用
     */
    ENABLE(1, "启用"),
    /**
     * 禁用
     */
    DISABLE(2,"禁用")

    ;

    /**
     * 状态码 @EnumValue标记数据库存的值是code
     */
    @EnumValue
    private final Integer code;
    /**
     * 描述
     */
    private final String desc;

    UserStateEnum(Integer code,String desc){
        this.code = code;
        this.desc = desc;
    }

}
